<?php
$uri = get_base_url() . url_title(trim($new->category), 'dash', TRUE) . '/' . url_title(trim($new->title), 'dash', TRUE) . '-n' . $new->cat_id . '-' . $new->id;
$thumbnail = ($new->thumbnail != '') ? $new->thumbnail : '/images/noimage.jpg';
?>
<div class="post">
    <a class="post-img" href="<?php echo $uri; ?>" title="<?php echo $new->title; ?>">
        <img src="<?php echo $thumbnail; ?>" alt="<?php echo $new->title; ?>">
    </a>
    <h3 class="post-title">
        <a href="<?php echo $uri; ?>" title="<?php echo $new->title; ?>"><?php echo $new->title; ?></a>
    </h3>
    <div class="post-desc">
        <div style="text-align: justify;">
            <p>
                <?php echo $new->summary; ?>
            </p>
        </div>
    </div>
    <div class="clear"></div>
</div>